package com.ddtech.business.train.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddtech.business.train.entity.TrainPlanChapter;
import com.ddtech.business.train.entity.TrainPlanResource;

import java.util.List;

/**
 * @author bin
 */
public interface TrainPlanResourceService extends IService<TrainPlanResource> {
    /**
     * 保存资源信息
     * @param trainPlanChapter
     */
    void saveResource(TrainPlanChapter trainPlanChapter);

    /**
     * 获取资源列表
     * @param chapter
     * @return
     */
    List<TrainPlanResource> getResource(String chapter);

    /**
     * 获取资源列表 -PC app
     * @param chapter
     * @return
     */
    List<TrainPlanResource> getResourceList(String chapter);

    /**
     * remove
     * @param courseChapter
     */
    void removeResource(TrainPlanChapter courseChapter);

    TrainPlanResource findOne(String id);
}
